home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NBC Slam Jams!
/
NBC Slam Jams!.iso
/
xtras
/
media_la
/
effector.cst
/
00018_Script_Swirl
< prev
next >
Wrap
Text File
|
1997-09-30
|
1KB
|
53 lines
-- Swirl
Property SwirlAmount,pInterp
on getPropertyDescriptionList
if not alphamaniacCheck(the currentSpriteNum) then exit
set pList=[:]
addProp pList,#SwirlAmount,[format:#integer,¼
comment:"Enter swirl Degrees:",¼
Default:0,range:[min:-360,max:360]]
addProp pList,#pInterp,[format:#symbol,¼
comment:"Interpolation:",¼
Default:#On,range:[#Off,#On,#Paused]]
return pList
end
on beginSprite me
set s=the spriteNum of me
if not alphaManiac(s) then exit
set pInterp=interpolation(pInterp)
Swirl(sprite s,[degrees:SwirlAmount,interpolation:pInterp])
end
on slideSwirl me, slider, p
set s=the spriteNum of me
if not alphaManiac(s) then exit
setSwirl(me,((p*360) / 100))
end
on setSwirl me, val
set swirlAmount=val
Swirl(sprite (the spriteNum of me),[degrees:SwirlAmount])
end
on getBehaviorDescription me
set msg= "This is where it gets cool! PhotoshopÖ had it, now you have it! Add this to your AlphaManiac for a little twist."
put return & return after msg
put "Parameters:" & return & "-----------" & return after msg
put "* Swirl Amount: -360 to 360" & return after msg
put "* Interpolation: On,Off,or While Paused" after msg
put return & "-----------" & return & return & ">>>" && amTip() after msg
return msg
end